small fix

This commit is contained in:
NilsUeter
2023-05-08 21:31:20 +02:00
parent 142040e2b3
commit 041b21180d
+15 -10
View File
@@ -168,16 +168,21 @@ function App() {
Custom Color
</label>
{primaryColor !== getPrimaryColor(roster.forces[0].catalog) && (
<button
onClick={() =>
setPrimaryColor(getPrimaryColor(roster.forces[0].catalog))
}
style={{ padding: "2px 4px", borderRadius: 4, borderWidth: 1 }}
>
Reset color
</button>
)}
{roster &&
primaryColor !== getPrimaryColor(roster.forces[0].catalog) && (
<button
onClick={() =>
setPrimaryColor(getPrimaryColor(roster.forces[0].catalog))
}
style={{
padding: "2px 4px",
borderRadius: 4,
borderWidth: 1,
}}
>
Reset color
</button>
)}
</div>
</div>
<div className="print-display-none" style={{ color: "red" }}>