Should the Apple iPhone X leather folio case work on an iPhone XS?

I’m trying it out and it fits but the phone’s not locking when the folio is closed. The magnets are built in to the case and I could find them with some metal so I’m not sure what the issue could be unless they’re just not compatible.