Skip to content

Commit

Permalink
fix(soffit-pwa): set value on radio group option
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Mar 6, 2023
1 parent c2f51e9 commit 17a691a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions uniquely/soffit-pwa/src/lottery-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export class AlwatrLotteryForm extends LocalizeMixin(SignalMixin(AlwatrBaseEleme
return {
title: message('activity_type'),
radioGroup: [
{label: message('tile_player')},
{label: message('tile_installer')},
{label: message('seller_shopkeeper')},
{label: message('contractor')},
{label: message('manufacturer')},
{label: message('other')},
{label: message('tile_player'), value: 'tile_player'},
{label: message('tile_installer'), value: 'tile_installer'},
{label: message('seller_shopkeeper'), value: 'seller_shopkeeper'},
{label: message('contractor'), value: 'contractor'},
{label: message('manufacturer'), value: 'manufacturer'},
{label: message('other'), value: 'other'},
],
};
}
Expand Down Expand Up @@ -100,7 +100,7 @@ export class AlwatrLotteryForm extends LocalizeMixin(SignalMixin(AlwatrBaseEleme
for (const inputElement of this.renderRoot.querySelectorAll<AlwatrTextField>(
'alwatr-text-field,alwatr-radio-group',
)) {
data[inputElement.name] = inputElement.value;
data[inputElement.name] = inputElement.value as string;
}
return data;
}
Expand Down

0 comments on commit 17a691a

Please sign in to comment.