Skip to content

Commit c5ccd62

Browse files
committed
fix: DASH-410
1 parent 562978f commit c5ccd62

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

apps/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"preinstall": "npx only-allow pnpm",
7-
"dev": "next dev --turbopack",
7+
"dev": "next dev",
88
"build": "next build",
99
"start": "next start",
1010
"format": "biome format ./src --write",

apps/dashboard/src/@/constants/thirdweb.client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export function useThirdwebClient(jwt?: string) {
2424
throw new Error("Failed to get auth token");
2525
}
2626
const json = (await res.json()) as GetAuthTokenResponse;
27-
return json.jwt || undefined;
27+
if (!json.jwt) {
28+
throw new Error("No JWT in response");
29+
}
30+
return json.jwt;
2831
},
2932
});
3033

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/hooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function toBigInt(value: string | number | undefined): bigint | undefined {
208208
if (value === "unlimited") {
209209
return maxUint256;
210210
}
211+
return BigInt(value);
211212
}
212213

213214
// The input from client-side is non-wei, but the extension is expecting value in wei

0 commit comments

Comments
 (0)