From 0910b058fbc87249e349661b6396948c369455db Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Tue, 14 Jul 2020 03:03:13 +0530 Subject: [PATCH] fix: remove workaround check for upstream #287 --- source/Popup/Form.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/Popup/Form.tsx b/source/Popup/Form.tsx index 4efa9a8..6cd520d 100644 --- a/source/Popup/Form.tsx +++ b/source/Popup/Form.tsx @@ -128,13 +128,10 @@ const Form: React.FC = () => { const apiBody: ApiBodyProperties = { apikey: extensionSettingsState.apikey, target, - ...(customurl.trim() !== '' && {customurl: customurl.trim()}), // add this key only if field is not empty + ...(customurl.trim() !== '' && {customurl: customurl.trim()}), // add key only if field is not empty ...(password.trim() !== '' && {password: password.trim()}), reuse: false, - // ToDo: remove condition when https://github.com/thedevs-network/kutt/issues/287 is resolved - ...(domain.trim() !== extensionSettingsState.host.hostUrl && { - domain: domain.trim(), - }), + ...(domain.trim() !== '' && {domain: domain.trim()}), }; const apiShortenUrlBody: ShortUrlActionBodyProperties = {