4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 09:45:52 +00:00

Merge pull request #285 from QuickMythril/voting-fix

Fix voting on poll names with special characters
This commit is contained in:
AlphaX-Projects 2024-04-20 08:14:03 +02:00 committed by GitHub
commit 1027252c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1556,7 +1556,7 @@ class WebBrowser extends LitElement {
try {
pollInfo = await parentEpml.request("apiCall", {
type: "api",
url: `/polls/${pollName}`,
url: `/polls/${encodeURIComponent(pollName)}`,
})
} catch (error) {
const errorMsg = (error && error.message) || 'Poll not found'