Skip to content

[Bug]: TypeError in CartBox when custom tip input is empty #1174

@oriondevelops

Description

@oriondevelops

Which package is affected?

Orange Theme

Version

4.x

What happened?

Selecting the "Other" custom tip option and leaving the input empty (or clearing it) throws a TypeError: Argument #2 ($value) must be of type string|int|float, null given in CartBox::updated(), entering a numeric value like 0 works fine.
Image

What did you expect to happen?

The tip should default to 0 when the custom input is left empty.

What browser are you seeing the problem on?

Chrome

Relevant log output

Igniter\Orange\Livewire\CartBox::updated(): Argument #2 ($value) must be of type string|int|float, null given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions