mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 19:31:54 +03:00
fix adding issue
This commit is contained in:
parent
25c1bf0585
commit
0ce665c26b
@ -62,7 +62,8 @@ const SnippetEditorModal = ({username, onSnippetsUpdated}: SnippetEditorModalPro
|
||||
console.log("Response from add snippet: ", response)
|
||||
}else{
|
||||
console.log("Saving snippet:", username, title, body)
|
||||
response = await addSnippet(username, title, body)
|
||||
const res = await addSnippet(username, title, body)
|
||||
response = res && res.fragments
|
||||
console.log("Response from add snippet: ", response)
|
||||
}
|
||||
setShowModal(false);
|
||||
|
Loading…
Reference in New Issue
Block a user