Skip to content

Commit

Permalink
fix: url spaces caused wrong url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanyilmaz committed Jan 18, 2024
1 parent da73a55 commit 93dc0e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/screens/Welcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const WelcomeScreen = () => {
return;
}

postStore.setUrl(url);
api.createApiInstance(url);
postStore.setUrl(url.trim());
api.createApiInstance(url.trim());

postStore.getPosts().then(post => {
if (!post?.length) {
Expand Down Expand Up @@ -72,7 +72,7 @@ const WelcomeScreen = () => {
<ExampleWpSites
visible={exampleWpSitesModalVisible}
onPressExampleWebsite={url => {
postStore.setUrl(url);
postStore.setUrl(url.trim());
setExampleWpSitesModalVisible(false);
onConvertWpIntoMobile();
}}
Expand Down

0 comments on commit 93dc0e0

Please sign in to comment.