Merge pull request #1140 from gnosis/issue-1139

Fix: [SafeApps] add app input
This commit is contained in:
Daniel Sanchez 2020-07-22 19:20:12 +02:00 committed by GitHub
commit c904857a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1583 additions and 1168 deletions

View File

@ -160,7 +160,7 @@
},
"dependencies": {
"@gnosis.pm/safe-contracts": "1.1.1-dev.2",
"@gnosis.pm/safe-react-components": "^0.2.0",
"@gnosis.pm/safe-react-components": "https://github.com/gnosis/safe-react-components.git#7bb55de",
"@gnosis.pm/util-contracts": "2.0.6",
"@ledgerhq/hw-transport-node-hid": "5.19.0",
"@material-ui/core": "4.11.0",

View File

@ -40,10 +40,10 @@ export const getAppInfoFromOrigin = (origin) => {
}
}
export const getAppInfoFromUrl = async (appUrl: string): Promise<SafeApp> => {
export const getAppInfoFromUrl = async (appUrl?: string): Promise<SafeApp> => {
let res = { id: undefined, url: appUrl, name: 'unknown', iconUrl: appsIconSvg, error: true }
if (!appUrl.length) {
if (!appUrl?.length) {
return res
}

2745
yarn.lock

File diff suppressed because it is too large Load Diff