Skip to content

Commit

Permalink
fix(foxy-native-integration-form): remove default provider selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed Feb 24, 2025
1 parent 702867c commit 142d28d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ describe('NativeIntegrationForm', () => {
) as InternalSelectControl;

expect(control).to.be.instanceOf(InternalSelectControl);
expect(control.getValue()).to.equal('avalara');
expect(control.getValue()).to.be.undefined;
expect(control).to.have.deep.property('options', [
{ value: 'avalara', label: 'option_avalara' },
{ value: 'onesource', label: 'option_onesource' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ export class NativeIntegrationForm extends Base<Data> {
return (value: unknown) => (this.__config = { [key]: value });
});

private readonly __providerGetValue = () => {
return this.form.provider ?? 'avalara';
};
private readonly __providerGetValue = () => this.form.provider;

private readonly __providerSetValue = (value: string) => {
this.edit({ provider: value, config: '{}' });
Expand Down Expand Up @@ -220,7 +218,7 @@ export class NativeIntegrationForm extends Base<Data> {
}

renderBody(): TemplateResult {
const provider = this.form.provider ?? 'avalara';
const provider = this.form.provider;

return html`
${this.renderHeader()}
Expand Down

0 comments on commit 142d28d

Please sign in to comment.