Merge pull request #1140 from gnosis/issue-1139
Fix: [SafeApps] add app input
This commit is contained in:
commit
c904857a28
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue