Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when using file browser to import an offer #2203

Merged
merged 1 commit into from Oct 23, 2023

Conversation

paninaro
Copy link
Contributor

@paninaro paninaro commented Oct 16, 2023

Fixes #2184

When performing a drag & drop, the File object contains both the name and path properties. When selecting a file from the open dialog, only the name property is provided. This resulted in an error when attempting to stat the selected file's path, which would be "" when using the file open dialog. The workaround according to the react-dropzone docs is to use FileReader to read the file contents for the returned File object.

Also removes the offer import background image

Remove offer import background image
@paninaro paninaro merged commit 9a544c1 into main Oct 23, 2023
5 of 8 checks passed
@paninaro paninaro deleted the paninaro.fix_offer_import branch October 23, 2023 21:23
cmmarslender pushed a commit to Chia-Network/chia-blockchain that referenced this pull request Nov 28, 2023
Fix typos by @omahs in Chia-Network/chia-blockchain-gui#2142
Fixed add plot directory button by @ChiaMineJP in Chia-Network/chia-blockchain-gui#2199
fix by @paninaro in Chia-Network/chia-blockchain-gui#2202
Fix crash when previewing an offer created using WalletConnect by @paninaro in Chia-Network/chia-blockchain-gui#2201
Fix error when using file browser to import an offer by @paninaro in Chia-Network/chia-blockchain-gui#2203
Fix accidental mutation of the expiring offers defaults object by @paninaro in Chia-Network/chia-blockchain-gui#2214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browsing to open offer fails [Bug]
2 participants