From ca466f5d195161605458b04d0d4b95735ffce9bd Mon Sep 17 00:00:00 2001 From: Phillip Date: Mon, 20 Feb 2023 13:03:29 +0000 Subject: [PATCH] change res validation --- .../plugins/core/components/ChatGifs/ChatGifs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js b/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js index 5db6c1d3..8d4c5de2 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js +++ b/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js @@ -417,7 +417,7 @@ setOpenGifModal: { attribute: false } return; } - if (doesNameExist.length !== 0) { + if (doesNameExist.title) { parentEpml.request('showSnackBar', get('gifs.gchange24')); this.isLoading = false; this.setGifsLoading(false); @@ -499,7 +499,7 @@ setOpenGifModal: { attribute: false } url: `/arbitrary/metadata/GIF_REPOSITORY/${userName}/${this.newCollectionName}&apiKey=${this.getApiKey()}`, } ); - if (myCollection.length > 0) { + if (myCollection.title) { clearInterval(interval); res(); }