Add disabling Mint button if DestinationAddress is null or empty

This commit is contained in:
Ivan Yaremenchuk 2022-09-20 21:11:04 -05:00
parent 2d151db33e
commit 73cbdd7c52

View File

@ -77,6 +77,6 @@
<RadzenNumeric TValue="int" Min="1" Max="100000" @bind-Value="@AppState.Storage.TokenAmount" Class="w-100" />
</div>
}
<RadzenButton Text="Mint" Click="@(async () => await Mint())" />
<RadzenButton Text="Mint" Disabled="@string.IsNullOrEmpty(AppState.Storage.DestinationAddress)" Click="@(async () => await Mint())" />
}
</RadzenContent>