diff --git a/frontend/src/component/feature/variant/__tests__/__snapshots__/update-variant-component-test.jsx.snap b/frontend/src/component/feature/variant/__tests__/__snapshots__/update-variant-component-test.jsx.snap index 4a2bc0ae5a..8668316f43 100644 --- a/frontend/src/component/feature/variant/__tests__/__snapshots__/update-variant-component-test.jsx.snap +++ b/frontend/src/component/feature/variant/__tests__/__snapshots__/update-variant-component-test.jsx.snap @@ -205,6 +205,59 @@ exports[`renders correctly with without variants 1`] = ` Add variant
+ `; @@ -240,5 +293,26 @@ exports[`renders correctly with without variants and no permissions 1`] = ` > The sum of variants weights needs to be a constant number to guarantee consistent hashing in the client implementations, this is why we will sometime allocate a few more percentages to the first variant if the sum is not exactly 100. In a final version of this feature it should be possible to the user to manually set the percentages for each variant. + `; diff --git a/frontend/src/component/feature/variant/update-variant-component.jsx b/frontend/src/component/feature/variant/update-variant-component.jsx index 91a7622244..e1c70ff401 100644 --- a/frontend/src/component/feature/variant/update-variant-component.jsx +++ b/frontend/src/component/feature/variant/update-variant-component.jsx @@ -122,26 +122,25 @@ class UpdateVariantComponent extends Component { Add variant + ) : null} - {variants.length > 0 ? ( - - ) : null} + ); }