Skip to content

Commit e39964f

Browse files
committed
feat: add fallback redirect URL for SignIn component in Faucet module
1 parent 4d729bb commit e39964f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/account/Faucet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Label } from '@/components/ui/label';
1818
import { useChainSwitch } from '@/hooks/useChainSwitch';
1919
import { ErrorAlert } from '@/modules/ErrorAlert';
2020
import useUserStore from '@/stores/useUser.store';
21-
import { getBlockExplorerUrl } from '@/utils/chain.utils';
21+
import { getBlockExplorerUrl, getChainFromId } from '@/utils/chain.utils';
2222
import { nrlcToRlc } from '@/utils/nrlcToRlc';
2323
import wagmiNetworks from '@/utils/wagmiNetworks';
2424

@@ -138,6 +138,7 @@ export function Faucet() {
138138
</div>
139139
<SignedOut>
140140
<SignIn
141+
fallbackRedirectUrl={`/${getChainFromId(chainId)?.slug}/account?accountTab=Faucet`}
141142
appearance={{
142143
theme: shadcn,
143144
elements: {

0 commit comments

Comments
 (0)