diff --git a/backend/src/starknet.ts b/backend/src/starknet.ts index a3a55709..b03dc24e 100644 --- a/backend/src/starknet.ts +++ b/backend/src/starknet.ts @@ -20,14 +20,13 @@ export const getStarknetId = async ( ); let domain; + let id; try { domain = await starknetIdNavigator.getStarkName(address); - } catch (error) { - console.error(error); + id = await starknetIdNavigator.getStarknetId(domain); + } catch { return null; } - const id = await starknetIdNavigator.getStarknetId(domain); - return id; };