Skip to content

Commit

Permalink
fix: remove workaround check for upstream #287
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijithvijayan committed Jul 13, 2020
1 parent 4a89b4a commit 0910b05
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/Popup/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 0910b05

Please sign in to comment.