mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-23 20:18:24 +00:00
25 lines
541 B
C#
25 lines
541 B
C#
using NftFaucet.Components;
|
|
using NftFaucet.Extensions;
|
|
|
|
namespace NftFaucet.Pages;
|
|
|
|
public class IndexComponent : BasicComponent
|
|
{
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
if (!await Metamask.IsReady())
|
|
{
|
|
UriHelper.NavigateToRelative("/connect-metamask");
|
|
return;
|
|
}
|
|
|
|
if (!AppState.IpfsContext.IsInitialized)
|
|
{
|
|
UriHelper.NavigateToRelative("/connect-ipfs");
|
|
return;
|
|
}
|
|
|
|
UriHelper.NavigateToRelative("/step1");
|
|
}
|
|
}
|