fallback
This commit is contained in:
1 parent
373725f96e
commit
d5d88270f0
1 file changed
+6
-6
@@ -60,14 +60,14 @@ const upsertAnonymousId = Effect.gen(function* () {
|
||||
* 2. ~/.t3/telemetry/anonymous-id
|
||||
*/
|
||||
export const getTelemetryIdentifier = Effect.gen(function* () {
|
||||
const codexAccountId = yield* getCodexAccountId;
|
||||
if (codexAccountId) {
|
||||
return yield* hash(codexAccountId);
|
||||
const codexAccountId = yield* Effect.result(getCodexAccountId);
|
||||
if (codexAccountId._tag === "Success") {
|
||||
return yield* hash(codexAccountId.success);
|
||||
}
|
||||
|
||||
const anonymousId = yield* upsertAnonymousId;
|
||||
if (anonymousId) {
|
||||
return yield* hash(anonymousId);
|
||||
const anonymousId = yield* Effect.result(upsertAnonymousId);
|
||||
if (anonymousId._tag === "Success") {
|
||||
return yield* hash(anonymousId.success);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user