We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d74fb0e commit 09b58c6Copy full SHA for 09b58c6
lib/scenic/component/input/radio_button.ex
@@ -19,8 +19,10 @@ defmodule Scenic.Component.Input.RadioButton do
19
end
20
21
# --------------------------------------------------------
22
- def verify({text, checked?} = data)
23
- when is_bitstring(text) and is_boolean(checked?) do
+ def verify({text, _} = data) when is_bitstring(text) do
+ {:ok, data}
24
+ end
25
+ def verify({text, _, checked?} = data) when is_bitstring(text) and is_boolean(checked?) do
26
{:ok, data}
27
28
def verify(_), do: :invalid_data
0 commit comments