@gnosis.pm/dutchx-verification-react
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@gnosis.pm/dutchx-verification-react", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Frontend verification React component for DutchX Protocol", | ||
"main": "build/index.js", | ||
"scripts": { | ||
"build": "webpack", | ||
"build": "rm -rf build && webpack", | ||
"start": "webpack --watch", | ||
@@ -9,0 +9,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
@@ -18,5 +18,5 @@ import React, { useEffect, useState } from 'react' | ||
try { | ||
const { disclaimer_accepted } = await cancelableGetDisclaimerSettings.promise | ||
const localSettings = await cancelableGetDisclaimerSettings.promise | ||
setDisclaimerAccepted(disclaimer_accepted) | ||
if (localSettings && localSettings.disclaimer_accepted) return setDisclaimerAccepted(disclaimer_accepted) | ||
} catch (error) { | ||
@@ -26,3 +26,3 @@ if (error.isCanceled) | ||
else | ||
return console.error('Error in withDutchXVerification async mount logic: ', err) | ||
return console.error('Error in withDutchXVerification async mount logic: ', error) | ||
} | ||
@@ -29,0 +29,0 @@ } |
Sorry, the diff of this file is too big to display
1591260