fix: revert bee env. variable names and add default rpc var (#545)

This commit is contained in:
Adam Uhlíř
2022-09-15 05:29:19 -07:00
committed by GitHub
parent 0592995564
commit 5295bd5b01
14 changed files with 59 additions and 59 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ export default function TopUp(): ReactElement {
const { isDesktop, desktopUrl } = useContext(SettingsContext)
const { nodeInfo, status } = useContext(BeeContext)
const { balance } = useContext(BalanceProvider)
const { providerUrl } = useContext(SettingsContext)
const { rpcProviderUrl } = useContext(SettingsContext)
const [loading, setLoading] = useState(false)
const { enqueueSnackbar } = useSnackbar()
@@ -55,7 +55,7 @@ export default function TopUp(): ReactElement {
async function restart() {
setLoading(true)
try {
await upgradeToLightNode(desktopUrl, providerUrl)
await upgradeToLightNode(desktopUrl, rpcProviderUrl)
await restartBeeNode(desktopUrl)
enqueueSnackbar('Upgraded to light node', { variant: 'success' })
navigate(ROUTES.RESTART_LIGHT)