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: check if an onClick handler is defined before calling it #2790

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

rajivshah3
Copy link
Member

@rajivshah3 rajivshah3 commented Apr 8, 2022

Summary

If a user clicks on the Profile component on the EnterPin screen, the app will report an error. In dev, this is reported as a warning when it renders:

image

Changelog

- Check if an onClick handler is defined before calling it

Relevant Issues

Fixes #2788

Type of Change

  • Fix - a change which fixes an issue

Testing

Platforms

  • Desktop
    - [x] MacOS

Instructions

Click on the profile icon on the EnterPin screen

Checklist

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code

@rajivshah3 rajivshah3 force-pushed the fix/profile-onclick-undefined branch from a66bc17 to 7f9c392 Compare April 8, 2022 00:45
@rajivshah3 rajivshah3 merged commit c66d658 into release/1.4.0 Apr 8, 2022
@rajivshah3 rajivshah3 deleted the fix/profile-onclick-undefined branch April 8, 2022 00:56
nicole-obrien added a commit that referenced this pull request Apr 9, 2022
* chore: incremenet version to 1.4.0-beta-1

* fix: improve wording for theme settings hint (#2654)

* fix: change URL for reporting an issue

* fix: minimum rewards popup warning (#2684)

* chore: manually sync new translations from Crowdin

* fix: cancel any requests to select a Bluetooth device (#2693)

* fix: cancel any requests to select a Bluetooth device

* chore: Ignore vulnerability in Snyk

* chore: update wallet.rs to fix missing addresses (#2695)

Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>

* chore: increment version to 1.4.0-beta-2

* chore: sync latest translations from Crowdin

* chore: upload PDB files when building Windows (#2721)

* chore: increase network timeout for Yarn on CI (#2722)

* chore: add comment explaining network timeout threshold increase

* fix: rename account issues for 1.4.0 (#2720)

* fix: rename profile issues

* Update return type for onSubmitClick

* Update packages/desktop/App.svelte

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* Update packages/shared/lib/app.ts

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* fix: make hasRenamedProfileFoldersToId persistent

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* chore: increment version to 1.4.0-beta-3

* chore: fix workflow

* chore: increment desktop version to 1.4.0

* fix: retain original error structure when sending error to Sentry (#2727)

* chore: Use Sectigo timestamp server on Windows

* chore: use Sectigo RFC 3161 timestamp server on Windows

* chore: update wallet.rs to fix transaction history

* chore: increment desktop version to 1.4.1-beta

* fix: missing autosubscription in dashboard

* chore: increment desktop version to 1.4.1

* chore: update wallet.rs to fix Unicode paths on Windows (#2785)

* fix: check if an onClick handler is defined before calling it (#2790)

* fix: error handling of invalid timestamps (#2796)

* fix: error handling of invalid timestamps

* fix: invalid date and time in cvs export

* fix: handle undefined index

* chore: chore increment desktop version to 1.4.2

Co-authored-by: Matthew Maxwell <maxwellmattryan@gmail.com>
Co-authored-by: Matthew Maxwell <44885822+maxwellmattryan@users.noreply.github.com>
Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>
Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:fix Fix for bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants