small fix
This commit is contained in:
+7
-2
@@ -168,12 +168,17 @@ function App() {
|
|||||||
Custom Color
|
Custom Color
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{primaryColor !== getPrimaryColor(roster.forces[0].catalog) && (
|
{roster &&
|
||||||
|
primaryColor !== getPrimaryColor(roster.forces[0].catalog) && (
|
||||||
<button
|
<button
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
setPrimaryColor(getPrimaryColor(roster.forces[0].catalog))
|
setPrimaryColor(getPrimaryColor(roster.forces[0].catalog))
|
||||||
}
|
}
|
||||||
style={{ padding: "2px 4px", borderRadius: 4, borderWidth: 1 }}
|
style={{
|
||||||
|
padding: "2px 4px",
|
||||||
|
borderRadius: 4,
|
||||||
|
borderWidth: 1,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Reset color
|
Reset color
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user