Skip to content

Commit

Permalink
fix(pair): Fix check around isSystemCameraUrl
Browse files Browse the repository at this point in the history
Because:
* We want a different view to render if this is true, and there was an issue with the check where it was always falsey

This commit:
* Adjusts what's passed into getHashParams

fixes FXA-10443
  • Loading branch information
LZoog authored and dschom committed Sep 26, 2024
1 parent f24be89 commit aa73dd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PairUnsupportedView extends FormView {
const isMobile = uap.isMobile();
// Assume the user is on non-Firefox desktop in this case.
const isDesktopNonFirefox = !isFirefox && !isMobile;
const hashParams = this.getHashParams(['channel_id, channel_key']);
const hashParams = this.getHashParams(['channel_id', 'channel_key']);
const isSystemCameraUrl =
hashParams.channel_id && hashParams.channel_key && isMobile;

Expand Down

0 comments on commit aa73dd0

Please sign in to comment.