fix: provider is by default null and account page redirect to provider setup (#437)

This commit is contained in:
Vojtech Simetka
2022-06-24 14:03:37 +02:00
committed by GitHub
parent a756eedc49
commit 2e0eeb7a1b
9 changed files with 48 additions and 42 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export function Swap({ header }: Props): ReactElement {
const bzzAfterSwap = new BzzToken(daiToSwap.toBigNumber.dividedToIntegerBy(200))
async function onSwap() {
if (hasSwapped) {
if (hasSwapped || !providerUrl) {
return
}
setLoading(true)